package com.briup.service.Impl;

import com.briup.bean.BrowsingHistory;
import com.briup.dao.IBrowsingHistoryDao;
import com.briup.service.IBrowsingHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IBrowsingHistoryServiceImpl implements IBrowsingHistoryService {
    @Autowired
    private IBrowsingHistoryDao browsingHistoryDao;
    @Override
    public void saveUserBrowsingHistory(Long userId, Long shopId, String time) {
        browsingHistoryDao.saveUserBrowsingHistory(userId,shopId,time);
    }

    @Override
    public List<BrowsingHistory> getUserBrowsingHistory(Long userId) {
        return browsingHistoryDao.getUserBrowsingHistory(userId);
    }
}
